/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package negocios;

import datos.BaseDeDatosDB;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author May
 */
public class Valores {
   private ArrayList valore=new ArrayList();
   private ArrayList codigos=new ArrayList();
   
public void listar(int id) {
        try {
            BaseDeDatosDB valorDB = new BaseDeDatosDB();
            setValores(valorDB.buscarValor(id));
        } catch (SQLException ex) {
            Logger.getLogger(Valores.class.getName()).log(Level.SEVERE, null, ex); }
  }
    
    public ArrayList getValores() {
        return valore;}

    public void setValores(ArrayList valores) {
        this.valore = valores;} 
    
     

    private void setCodigos(ArrayList listarIds) {
        this.codigos = listarIds;
    }
     public ArrayList getCodigos() {
        return codigos;
    }     
}
